function [rBuy,rSell] = combine(rBuyMA,rSellMA,rBuyAR,rSellAR)
% combine AR and MA
rBuy = NaN(length(price_path),1);
rSell = NaN(length(price_path),1);

for i=1:length(rBuyMA)
   if isnan(rBuyMA(i))==0 && isnan(rBuyAR(i))==0
       rBuy(i) = rBuyMA(i);
   end
    if isnan(rSellMA(i))==0 && isnan(rSellAR(i))==0
       rSell(i) = rSellMA(i);
   end
end